package org.apache.harmony.javax.security.auth.callback;

import java.io.Serializable;

public class NameCallback
  implements Serializable, Callback
{
  private static final long serialVersionUID = 3770938795909392253L;
  private String prompt;
  private String defaultName;
  private String inputName;

  private void setPrompt(String paramString)
  {
    if ((paramString == null) || (paramString.length() == 0))
      throw new IllegalArgumentException("auth.14");
    this.prompt = paramString;
  }

  private void setDefaultName(String paramString)
  {
    if ((paramString == null) || (paramString.length() == 0))
      throw new IllegalArgumentException("auth.1E");
    this.defaultName = paramString;
  }

  public NameCallback(String paramString)
  {
    setPrompt(paramString);
  }

  public NameCallback(String paramString1, String paramString2)
  {
    setPrompt(paramString1);
    setDefaultName(paramString2);
  }

  public String getPrompt()
  {
    return this.prompt;
  }

  public String getDefaultName()
  {
    return this.defaultName;
  }

  public void setName(String paramString)
  {
    this.inputName = paramString;
  }

  public String getName()
  {
    return this.inputName;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.apache.harmony.javax.security.auth.callback.NameCallback
 * JD-Core Version:    0.6.1
 */